<html>
<head><meta charset="utf-8"><title>LLVM backends · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html">LLVM backends</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="209223058"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223058" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223058">(Sep 06 2020 at 12:21)</a>:</h4>
<p>I have set things up in <code>config.toml</code> to only build the X86 backend (<code>targets = "X86"</code>), but I just noticed this in the LLVM build log:</p>
<div class="codehilite"><pre><span></span><code>-- Targeting X86
-- Targeting AVR
Traceback (most recent call last):
  File &quot;&lt;string&gt;&quot;, line 22, in &lt;module&gt;
IndexError: list index out of range
</code></pre></div>


<p>Is that expected? Shouldn't it disable AVR?</p>



<a name="209223140"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223140" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223140">(Sep 06 2020 at 12:23)</a>:</h4>
<p>someone else ran into this recently: <a href="#narrow/stream/182449-t-compiler.2Fhelp/topic/Failed.20to.20compile.20.60rustc_driver.60.3A.20linking.20with.20.60cc.60.20failed">https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/Failed.20to.20compile.20.60rustc_driver.60.3A.20linking.20with.20.60cc.60.20failed</a>, so it might be a new bug in x.py</p>



<a name="209223231"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223231" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> lzutao <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223231">(Sep 06 2020 at 12:26)</a>:</h4>
<p>I am also surprised that AVR is built with LLVM, mabe related to AVR pull requests.</p>



<a name="209223646"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223646" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223646">(Sep 06 2020 at 12:35)</a>:</h4>
<p><span class="user-mention" data-user-id="120791">@RalfJ</span> did you edit experimental targets to exclude AVR too?</p>



<a name="209223651"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223651" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223651">(Sep 06 2020 at 12:35)</a>:</h4>
<p>it looks like it's in there by default</p>



<a name="209223654"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223654" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223654">(Sep 06 2020 at 12:35)</a>:</h4>
<p>this is the first time I hear about "experimental targets"</p>



<a name="209223711"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223711" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223711">(Sep 06 2020 at 12:36)</a>:</h4>
<p>I think my <code>config.toml</code> was created before that was a thing^^</p>



<a name="209223722"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223722" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223722">(Sep 06 2020 at 12:36)</a>:</h4>
<p>but the comment claims they are not built by default:</p>
<div class="codehilite"><pre><span></span><code># LLVM experimental targets to build support for. These targets are specified in
# the same format as above, but since these targets are experimental, they are
# not built by default and the experimental Rust compilation targets that depend
# on them will not work unless the user opts in to building them.
#experimental-targets = &quot;AVR&quot;
</code></pre></div>



<a name="209223756"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223756" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223756">(Sep 06 2020 at 12:37)</a>:</h4>
<p>I am not sure I would trust that comment</p>



<a name="209223797"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223797" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223797">(Sep 06 2020 at 12:38)</a>:</h4>
<p>well I think the comment is right in that it should be off-by-default^^</p>



<a name="209223802"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223802" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223802">(Sep 06 2020 at 12:38)</a>:</h4>
<p>right, probably</p>



<a name="209223805"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223805" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223805">(Sep 06 2020 at 12:38)</a>:</h4>
<p>but it looks like the code hardcodes that being omitted as implying AVR</p>



<a name="209223807"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223807" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223807">(Sep 06 2020 at 12:38)</a>:</h4>
<p>so try with <code>experimental-targets = ""</code></p>



<a name="209223809"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223809" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223809">(Sep 06 2020 at 12:38)</a>:</h4>
<p>I wouldnt expect to have to disable two things. but yes, adding an explicit <code>experimental-targets = ""</code> helps</p>



<a name="209223823"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223823" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223823">(Sep 06 2020 at 12:39)</a>:</h4>
<p>Cc <span class="user-mention" data-user-id="116155">@Jake Goulding</span> any idea why AVR is on by default contrary to what the comment says?</p>



<a name="209223827"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223827" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223827">(Sep 06 2020 at 12:39)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116122">simulacrum</span> <a href="#narrow/stream/122651-general/topic/LLVM.20backends/near/209223805">said</a>:</p>
<blockquote>
<p>but it looks like the code hardcodes that being omitted as implying AVR</p>
</blockquote>
<p>maybe that should be changed?</p>



<a name="209223887"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223887" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223887">(Sep 06 2020 at 12:41)</a>:</h4>
<p>I think the comment is ambiguous, as it's unclear if it applies to LLVM or Rust.</p>



<a name="209223939"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223939" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223939">(Sep 06 2020 at 12:42)</a>:</h4>
<p>At the very least we probably want a bug filed for whatever config causes that opaque error</p>



<a name="209223953"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223953" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223953">(Sep 06 2020 at 12:43)</a>:</h4>
<p>And CI wants to enable it by default (so that releases can target it)</p>



<a name="209223965"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209223965" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209223965">(Sep 06 2020 at 12:43)</a>:</h4>
<p>We could also lump the experimental targets back together and have some logic in the build to say "oh, AVR needs to go in <em>this</em> bucket for LLVM args"</p>



<a name="209224006"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224006" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224006">(Sep 06 2020 at 12:44)</a>:</h4>
<p><span class="user-mention" data-user-id="120791">@RalfJ</span> apologies for the extra build time, doctor <span aria-label="smiling face" class="emoji emoji-263a" role="img" title="smiling face">:smiling_face:</span></p>



<a name="209224128"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224128" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224128">(Sep 06 2020 at 12:47)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116155">Jake Goulding</span> <a href="#narrow/stream/122651-general/topic/LLVM.20backends/near/209223953">said</a>:</p>
<blockquote>
<p>And CI wants to enable it by default (so that releases can target it)</p>
</blockquote>
<p>right, but then maybe it is better to enable it on CI than to enable it for all contributors</p>



<a name="209224177"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224177" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224177">(Sep 06 2020 at 12:48)</a>:</h4>
<p>defaults <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  should <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  be <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  defaults <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  for <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  contributors</p>



<a name="209224187"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224187" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224187">(Sep 06 2020 at 12:48)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116155">Jake Goulding</span> <a href="#narrow/stream/122651-general/topic/LLVM.20backends/near/209223887">said</a>:</p>
<blockquote>
<p>I think the comment is ambiguous, as it's unclear if it applies to LLVM or Rust.</p>
</blockquote>
<p>ah. that did not occur to me -- it is probably only ambiguous if you know a lot about how rustbuild interacts with LLVM^^</p>



<a name="209224195"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224195" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224195">(Sep 06 2020 at 12:49)</a>:</h4>
<p>yeah it seems pretty clear that they <em>are</em> built by default currently</p>



<a name="209224207"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224207" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224207">(Sep 06 2020 at 12:49)</a>:</h4>
<p>I think the challenge is that when you constrain targets here we start seeing tests fail because CI enables them unconditionally</p>



<a name="209224208"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224208" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224208">(Sep 06 2020 at 12:49)</a>:</h4>
<p>(and when configuring rustbuild, I dont really care what LLVM's default are)</p>



<a name="209224210"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224210" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224210">(Sep 06 2020 at 12:50)</a>:</h4>
<p>so it's not an obvious case of defaults being wrong</p>



<a name="209224251"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224251" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224251">(Sep 06 2020 at 12:50)</a>:</h4>
<p>CI could use <code>--set</code>, couldn't it?</p>



<a name="209224252"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224252" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224252">(Sep 06 2020 at 12:50)</a>:</h4>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <a href="#narrow/stream/122651-general/topic/LLVM.20backends/near/209224177">said</a>:</p>
<blockquote>
<p>defaults <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  should <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  be <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  defaults <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  for <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  contributors</p>
</blockquote>
<p>It is. For contributors working on AVR :-)</p>



<a name="209224256"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224256" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224256">(Sep 06 2020 at 12:50)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116155">Jake Goulding</span> <a href="#narrow/stream/122651-general/topic/LLVM.20backends/near/209224252">said</a>:</p>
<blockquote>
<p><span class="user-mention silent" data-user-id="232545">Joshua Nelson</span> <a href="#narrow/stream/122651-general/topic/LLVM.20backends/near/209224177">said</a>:</p>
<blockquote>
<p>defaults <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  should <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  be <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  defaults <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  for <span aria-label="clap" class="emoji emoji-1f44f" role="img" title="clap">:clap:</span>  contributors</p>
</blockquote>
<p>It is. For contributors working on AVR :-)</p>
</blockquote>
<p>it seems like working on AVR isn't the default though :P</p>



<a name="209224258"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224258" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224258">(Sep 06 2020 at 12:50)</a>:</h4>
<p><span class="user-mention" data-user-id="116155">@Jake Goulding</span> my point is that even for <em>non</em>-AVR contributors, there's presumably tests in tree that will fail if you don't have it enabled</p>



<a name="209224259"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224259" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224259">(Sep 06 2020 at 12:50)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116122">simulacrum</span> <a href="#narrow/stream/122651-general/topic/LLVM.20backends/near/209224207">said</a>:</p>
<blockquote>
<p>I think the challenge is that when you constrain targets here we start seeing tests fail because CI enables them unconditionally</p>
</blockquote>
<p>what kinds of tests? I am not running the rustc test suite for the AVR target^^</p>



<a name="209224270"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224270" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224270">(Sep 06 2020 at 12:51)</a>:</h4>
<p>I have constrained the normal targets and nothing failed</p>



<a name="209224271"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224271" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224271">(Sep 06 2020 at 12:51)</a>:</h4>
<p>e.g. src/test/codegen/avr/avr-func-addrspace.rs</p>



<a name="209224273"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224273" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224273">(Sep 06 2020 at 12:51)</a>:</h4>
<p>why would the AVR target be different?</p>



<a name="209224277"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224277" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224277">(Sep 06 2020 at 12:51)</a>:</h4>
<p>I guess that has needs-llvm-components: avr</p>



<a name="209224281"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224281" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224281">(Sep 06 2020 at 12:51)</a>:</h4>
<p>so probably this is not a problem in practice and we can switch the default to off</p>



<a name="209224341"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209224341" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209224341">(Sep 06 2020 at 12:52)</a>:</h4>
<p>IIRC it followed the existing pattern of <code>targets</code> which also populates it to a big set when not present</p>



<a name="209225542"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209225542" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209225542">(Sep 06 2020 at 13:27)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116155">Jake Goulding</span> <a href="#narrow/stream/122651-general/topic/LLVM.20backends/near/209224341">said</a>:</p>
<blockquote>
<p>IIRC it followed the existing pattern of <code>targets</code> which also populates it to a big set when not present</p>
</blockquote>
<p>right but (a) that doesnt say "not built by default" in the docs and (b) I had already emptied <code>targets</code> in my config for this exact reason, which worked fine until AVR came along and circumvented me disabling all non-X86 targets ;)</p>



<a name="209225605"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209225605" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209225605">(Sep 06 2020 at 13:29)</a>:</h4>
<p><span class="user-mention silent" data-user-id="116122">simulacrum</span> <a href="#narrow/stream/122651-general/topic/LLVM.20backends/near/209223939">said</a>:</p>
<blockquote>
<p>At the very least we probably want a bug filed for whatever config causes that opaque error</p>
</blockquote>
<p><a href="https://github.com/rust-lang/rust/issues/76408">https://github.com/rust-lang/rust/issues/76408</a></p>



<a name="209244046"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209244046" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209244046">(Sep 06 2020 at 22:17)</a>:</h4>
<p>NB that in the past we had other experimental targets enabled by default</p>



<a name="209244082"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209244082" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209244082">(Sep 06 2020 at 22:18)</a>:</h4>
<p>in particular – wasm</p>



<a name="209244094"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209244094" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209244094">(Sep 06 2020 at 22:19)</a>:</h4>
<p>RISCV is another.</p>



<a name="209244099"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20backends/near/209244099" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20backends.html#209244099">(Sep 06 2020 at 22:19)</a>:</h4>
<p>not sure if either of those have been stabilized in LLVM recently.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>